<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">

			<strong>区块列表</strong>

		</div>
		<div class="panel-body">
			<div id="toolbar" style="width: 100%;">
				<form id="filter" method="get" action="<{:addons_url('index')}>" class="form-horizontal">
					<div class="form-group">
						<div class="col-sm-3">
							<input type="text" name="kw" style="margin-left:5px;" class="form-control"  value="<{$_REQUEST['kw']}>" placeholder="关键字" />
						</div>
						 
						<div class="col-sm-4" style="float:right; width:auto">
						
							<input type="submit" class="btn btn-primary pull-right" value="筛选">
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-8">
							<a  href="<{:addons_url('add')}>" class="btn btn-default"> <i class="fa fa-plus"></i> 添加 </a>
						
						<a  href="<{:addons_url('AutoComplete/Index/list_table',array('auto_complete_name'=>'system_template'))}>" class="btn btn-default"> <i class="fa fa-plus"></i> 模板 </a>

							<a data-type="modal"  href="/BoxAddon/AutoComplete/Index/list_table/auto_complete_name/addon_data_blocks_group/group_name/table_addon_data_blocks_group_post" class="btn btn-default"> <i class="fa fa-plus"></i> 区块组 </a>

						</div>
					</div>
				</form>
			</div>
			<div class="bootstrap-table">
				<div class="fixed-table-container" style="padding-bottom: 0px;">
					<div class="fixed-table-body">
						<table id="data-table" class="table">
							<thead>
								<tr>
									 
									<th style="" data-field="name"><div class="th-inner ">标题</div>
										<div class="fht-cell"></div></th>
									 
									<th style="" data-field="name"><div class="th-inner ">类型</div>
										<div class="fht-cell"></div></th>
									<th style="" data-field="id"><div class="th-inner ">操作</div>
										<div class="fht-cell"></div></th>
								</tr>
							</thead>
							<tbody>
								<volist name="data" id="vo">
									<tr data-index="0">
										  
										<td height="36"  valign="middle"><{$vo.title}></td>
										<td height="36" valign="middle"><{$blocks_type[$vo['type']]}></td>
										 
										<td style="">
										<a  href="<{:addons_url('add',array('blocks_name'=> $vo['name']))}>" class="btn btn-primary btn-xs">修改</a> 
										<a onClick="return confirm('确认需要删除些信息吗？');" href="<{:addons_url('del',array('id'=>$vo['id']))}>" class="btn btn-primary btn-xs">删除</a>
										<if condition="$vo['type'] eq 'image'">
										<a data-type="modal" href="<{:addons_url('blocks_image',array('blocks_name'=>'blocks_'.$vo['name']))}>"  class="btn btn-primary btn-xs">查看图文</a>
										</if>
										</td>
									</tr>
								</volist>
							</tbody>
						</table>
					</div>
					<include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" /> </div>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
</div>
 
 


 